package com.information.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("manu")
public class ManuDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String title;   // 标题

    private String author;  //作者

    private String origin;   // 来源

    private String content;   // 内容

    private String enclosurePath;  // 附件目录

    private Integer departmentId;   //部门id

    private String departmentName;  //部门名称

    private Integer createUserId;  //创建人id

    private String createUserName;  //创建人名称

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("是否删除  0 未删除  1已删除")
    private Integer deleteData;

    @ApiModelProperty("审核状态(0:审核中,1:审核通过,2:审核不通过)")
    private Integer auditStatus;

}
